export const fileName2Language = (name: string) => {
	const suffix = name.split('.').pop() || ''
	if (['js', 'jsx'].includes(suffix)) return 'javascript'
	if (['ts', 'tsx'].includes(suffix)) return 'typescript'
	if (['json'].includes(suffix)) return 'json'
	if (['css'].includes(suffix)) return 'css'
	return 'javascript'
}
